// 课程模块
import WebLayout from '@/layout/WebLayout'

const courseRouter = {
  path: '/course',
  component: WebLayout,
  redirect: '/web/course',
  hidden: true,
  children: [

    {
      path: '/web/course',
      component: () => import('@/views/web/course/list'),
      name: 'CourseLearn',
      meta: { title: '课程学习', icon: 'user', noCache: true }
    },

    {
      path: '/web/course/view/:courseId',
      component: () => import('@/views/web/course/view'),
      name: 'CourseView',
      meta: { title: '课程详情', noCache: true, activeMenu: '/web/course' }
    },

    {
      path: '/web/course/view/:courseId/:fileId',
      component: () => import('@/views/web/course/view'),
      name: 'CourseViewWithFile',
      meta: { title: '课程详情', noCache: true, activeMenu: '/web/course' }
    }

  ]
}
export default courseRouter
